home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.20010306-20010921 / 000057_news@columbia.edu _Thu Apr 5 15:12:49 2001.msg < prev    next >
Internet Message Format  |  2020-01-01  |  2KB

  1. Return-Path: <news@columbia.edu>
  2. Received: from newsmaster.cc.columbia.edu (newsmaster.cc.columbia.edu [128.59.59.30])
  3.     by fozimane.cc.columbia.edu (8.9.3/8.9.3) with ESMTP id PAA11476
  4.     for <kermit.misc@cpunix.cc.columbia.edu>; Thu, 5 Apr 2001 15:12:49 -0400 (EDT)
  5. Received: (from news@localhost)
  6.     by newsmaster.cc.columbia.edu (8.9.3/8.9.3) id OAA29055
  7.     for kermit.misc@watsun.cc.columbia.edu; Thu, 5 Apr 2001 14:56:52 -0400 (EDT)
  8. X-Authentication-Warning: newsmaster.cc.columbia.edu: news set sender to <news> using -f
  9. From: fdc@columbia.edu (Frank da Cruz)
  10. Subject: Re: Macro prameters containing spaces?
  11. Date: 5 Apr 2001 18:56:51 GMT
  12. Organization: Columbia University
  13. Message-ID: <9aif5j$sbs$1@newsmaster.cc.columbia.edu>
  14. To: kermit.misc@columbia.edu
  15.  
  16. In article <LJ2z6.11071$SB2.1260878@ruti.visi.com>,
  17. Grant Edwards <grante@visi.com> wrote:
  18. : I'm trying to automate some stuff done via serial port using
  19. : CKermit 7.  My local B&N didn't carry the book, so I've ordered
  20. : a copy.  But, in the meanwhile, I'm stuck on trying to write a
  21. : macro where one of the parameters is a string that may have
  22. : spaces in it:
  23. : define docmd {
  24. : output \fcontents(\%2)
  25. : output \13
  26. : input \%1 Prompt>
  27. : if failure echo FAILURE
  28. : }
  29. : define setup {
  30. : docmd 1 hello
  31. : docmd 1 "ip 192.168.1.11 255.255.255.0 192.168.1.1"
  32. : docmd 25 "flash init -f"
  33. : docmd 1 reset
  34. : }
  35. : I've tried using \32 for space in the parameter string and that
  36. : doesn't work either.  There must be trick to make this work...
  37. There's nothing wrong with your script as far as argument passing is
  38. concerned, as you can verify for youself with TRACE /ON or by putting
  39. SHOW ARGS as the first command in DOCMD.  I ran your SETUP macro myself,
  40. supplying a "Prompt>" string four times, and it worked fine.
  41.  
  42. - Frank